package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-09-01
 * Time: 20:16
 */
class B{
    public int x;
    public static int y;
}
public class ThreadS {
    public static void main(String[] args) {
        B b1 = new B();
        B b2 = new B();
        b1.x = 20;
        b2.x = 10;
        System.out.println("b1.x:" +b1.x);
        System.out.println("b2.x:" +b2.x);

        B b3 = new B();
        B b4 = new B();
        b3.y = 20;
        b4.y = 10;
        System.out.println("b3.y:" +b3.y);
        System.out.println("b4.y:" +b4.y);
        System.out.println(B.y);
    }
}
